#define MAXCONNECTION 10
struct client {
	pthread_t thread;
	int id;
	int sockfd;
	char name[12];
	int flag;
} *clients;

struct sockaddr_in serveraddr;
struct hostent *server;
int port ;
int sockfd;
int reserve;
int idClient;
int maxid;
FILE *logfile;
time_t howtime;

// lobby.c
extern void *lobby(void *);
extern void disconnect(struct client *);
extern char *createmessage(char *, char *);
extern void sendBackup(int);
extern void connection2mainserver();
extern void cloning();
extern void reserveClient();
extern void reserveClientQuit(int);
extern void reserveName(int, char[12]);
extern void reserveFlag(int, int);
void  printAllInfo();
void sendUserList();
